/**************************************************************************
 * Copyright (C) 2019-2019  Unisound
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 **************************************************************************
 *
 * Description : ac_device_simulator.h
 * Author      : liuwenzheng@unisound.com
 * Date        : 2019.12.30
 *
 **************************************************************************/


#ifndef APP_INC_AC_DEVICE_SIMULATOR_H_
#define APP_INC_AC_DEVICE_SIMULATOR_H_

#ifdef __cplusplus
extern "C" {
#endif

#include "uni_iot.h"

typedef enum {
  eACSTATE_UNKONWN = 0,
  eACSTATE_ON,
  eACSTATE_OFF,
  eACSTATE_MAX
}eAcSate;

typedef enum {
  eACTEMP_UNKONWN = 0,
  eACTEMP_16,
  eACTEMP_17,
  eACTEMP_18,
  eACTEMP_19,
  eACTEMP_20,
  eACTEMP_21,
  eACTEMP_22,
  eACTEMP_23,
  eACTEMP_24,
  eACTEMP_25,
  eACTEMP_26,
  eACTEMP_27,
  eACTEMP_28,
  eACTEMP_29,
  eACTEMP_30,
  eACTEMP_31,
  eACTEMP_32,
  eACTEMP_MAX
}eAcTemp;

typedef enum {
  eACMODE_UNKONWN = 0,
  eACMODE_COOL,
  eACMODE_HAT,
  eACMODE_DRY,
  eACMODE_FAN,
  eACMODE_AUTO,
  eACMODE_MAX
}eAcMode;

typedef enum {
  eACWINDSPEED_UNKONWN = 0,
  eACWINDSPEED_LOW,
  eACWINDSPEED_MID,
  eACWINDSPEED_HIGH,
  eACWINDSPEED_MAX
}eAcWindSpeed;

typedef enum {
  eACSWING_UNKONWN = 0,
  eACSWING_CROSS_ON,
  eACSWING_CROSS_OFF,
  eACSWING_VERT_ON,
  eACSWING_VERT_OFF,
  eACSWING_ALL_ON,
  eACSWING_ALL_OFF,
  eACSWING_MAX
}eAcSwing;

typedef enum {
  eACSKILL_UNKONWN = 0,
  eACSKILL_SLEEP,
  eACSKILL_HUMID,
  eACSKILL_SCREEN,
  eACSKILL_ENERGY,
  eACSKILL_MAX
}eAcSkill;

eAcSate AcDeviceGetState(void);
eAcSate AcDeviceSetState(eAcSate state);
eAcMode AcDeviceGetMode(void);
eAcMode AcDeviceSetMode(eAcMode mode);
eAcWindSpeed AcDeviceGetWindSpeed(void);
eAcWindSpeed AcDeviceSetWindSpeed(eAcWindSpeed speed);
eAcWindSpeed AcDeviceWindSpeedInc(void);
eAcWindSpeed AcDeviceWindSpeedDec(void);
eAcTemp AcDeviceGetTemp(void);
eAcTemp AcDeviceSetTemp(eAcTemp temp);
eAcTemp AcDeviceTempInc(void);
eAcTemp AcDeviceTempDec(void);
eAcTemp AcDeviceTempIncBig(void);
eAcTemp AcDeviceTempDecBig(void);
eAcSwing AcDeviceGetSwingState(void);
eAcSwing AcDeviceSetSwingState(eAcSwing swing);
uni_bool AcDeviceGetSkillState(eAcSkill skill);
uni_bool AcDeviceSetSkillState(eAcSkill skill, uni_bool is_on);
int AcDeviceInit(void);
void AcDeviceFinal(void);

#ifdef __cplusplus
}
#endif

#endif /*APP_INC_AC_DEVICE_SIMULATOR_H_*/
